<?php
/**
 * Created by PhpStorm.
 * User: wuz
 * Date: 2016/8/25
 * Time: 15:04
 */
header("content-type:text/html;charset=utf-8");
include "./Mysql/MySqlClass.php";
$userName=$_GET['user'];
$userName = urldecode($userName);
$mySQL = new Ycf\Lession\MySqlClass\MySqlClass('test_db', 'root', '123456');
$selectUserName = array('userName'=>$userName);
$user = $mySQL->select("html_admin", $selectUserName);
if(count($user)!=0){
   echo "用户已经存在";
}else{
   echo "用户名可以使用";
}